<?php
return [
    'components' => [
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => '127.0.0.1',
            'port' => 6379,
            'database' => 1,
        ],

        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=longlin.rwlb.rds.aliyuncs.com;dbname=longlinim',
            'username' => 'longlinim',
            'password' => 'Longlinim!@#2023!',
            //            'charset' => 'utf8',
            'charset' => 'utf8mb4',
            'tablePrefix' => 'jq_',
            'enableSchemaCache' => false,
            'schemaCacheDuration' => 1,
            'schemaCache' => 'cache',
        ],
    ]
];
